package com.ruoyi.system.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 考勤规则对象 attendance_rule
 * 
 * @author ruoyi
 * @date 2025-05-20
 */
public class UserRule extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long id;

    /** 规则名称 */
    @Excel(name = "规则名称")
    private String ruleName;

    private String checkInStart;
    private String checkInEnd;
    private String checkOutStart;
    private String checkOutEnd;
    private String lateThreshold;
    private String earlyLeaveThreshold;

    /** 规则状态（1：启用，0：禁用） */
    @Excel(name = "规则状态", readConverterExp = "1=：启用，0：禁用")
    private Long status;
    /** 关联用户ID */
    @Excel(name = "用户ID")
    private Long userId;

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }
    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setRuleName(String ruleName) 
    {
        this.ruleName = ruleName;
    }

    public String getRuleName() 
    {
        return ruleName;
    }

    public String getCheckInStart() {
        return checkInStart;
    }

    public void setCheckInStart(String checkInStart) {
        this.checkInStart = checkInStart;
    }

    public String getCheckInEnd() {
        return checkInEnd;
    }

    public void setCheckInEnd(String checkInEnd) {
        this.checkInEnd = checkInEnd;
    }

    public String getCheckOutStart() {
        return checkOutStart;
    }

    public void setCheckOutStart(String checkOutStart) {
        this.checkOutStart = checkOutStart;
    }

    public String getCheckOutEnd() {
        return checkOutEnd;
    }

    public void setCheckOutEnd(String checkOutEnd) {
        this.checkOutEnd = checkOutEnd;
    }

    public String getLateThreshold() {
        return lateThreshold;
    }

    public void setLateThreshold(String lateThreshold) {
        this.lateThreshold = lateThreshold;
    }

    public String getEarlyLeaveThreshold() {
        return earlyLeaveThreshold;
    }

    public void setEarlyLeaveThreshold(String earlyLeaveThreshold) {
        this.earlyLeaveThreshold = earlyLeaveThreshold;
    }

    public void setStatus(Long status)
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("ruleName", getRuleName())
            .append("checkInStart", getCheckInStart())
            .append("checkInEnd", getCheckInEnd())
            .append("checkOutStart", getCheckOutStart())
            .append("checkOutEnd", getCheckOutEnd())
            .append("lateThreshold", getLateThreshold())
            .append("earlyLeaveThreshold", getEarlyLeaveThreshold())
            .append("status", getStatus())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
